package com.tomorrowbbs.domain.vo.web;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class ForumArticleVO implements Serializable {

    //文章ID
    private String articleId;
    //板块ID
    private Long boardId;
    //板块名称
    private String boardName;
    //父板块ID
    private Long pBoardId;
    //父板块名称
    private String pBoardName;
    //用户ID
    private String userId;
    //用户昵称
    private String nickName;
    //用户最后登录IP地址
    private String userIpAddress;
    //标题
    private String title;
    //封面
    private String cover;
    //内容
    private String content;
    //摘要
    private String summary;
    //发布时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date postTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdateTime;
    //阅读数量
    private Long readCount;
    //点赞数量
    private Long goodCount;
    //评论数量
    private Long commentCount;
    //置顶类型:0未置顶、1置顶  //加精？
    private Integer topType;
    //附件类型:0无、1有
    private Integer attachmentType;
    //-1已删除、0待审核、1已审核
    private Integer status;


}
